package com.wwwarehouse.usercenter.bean.authoritydistribute;

import android.os.Parcel;
import android.os.Parcelable;

/**
 * @author : mundane
 * @time : 2017/9/25 9:24
 * @description :
 * @file : AuthorityDistributeItemBean.java
 */

public class AuthorityDistributeItemBean implements Parcelable {

	/**
	 * beUserId : null
	 * userCardAuthorityUkid : 52094902088232000
	 * cardName : 卸货
	 * validDate : null
	 * cardId : 12303107
	 * isValid : 1
	 * tagUkid : 111111111
	 * businessId : null
	 * tagName : 标签2
	 * invalidDate : null
	 */

	public long beUserId;
	public long userCardAuthorityUkid;
	public String cardName;
	public String validDate;
	public String cardId;
	public int isValid;
	public String tagUkid;
	public long businessId;
	public String tagName;
	public String invalidDate;
	public String validDateStr;
	public String invalidDateStr;
	public int alwaysOpen;


	@Override
	public int describeContents() {
		return 0;
	}

	@Override
	public void writeToParcel(Parcel dest, int flags) {
		dest.writeLong(this.beUserId);
		dest.writeLong(this.userCardAuthorityUkid);
		dest.writeString(this.cardName);
		dest.writeString(this.validDate);
		dest.writeString(this.cardId);
		dest.writeInt(this.isValid);
		dest.writeString(this.tagUkid);
		dest.writeLong(this.businessId);
		dest.writeString(this.tagName);
		dest.writeString(this.invalidDate);
		dest.writeString(this.validDateStr);
		dest.writeString(this.invalidDateStr);
		dest.writeInt(this.alwaysOpen);
	}

	public AuthorityDistributeItemBean() {
	}

	protected AuthorityDistributeItemBean(Parcel in) {
		this.beUserId = in.readLong();
		this.userCardAuthorityUkid = in.readLong();
		this.cardName = in.readString();
		this.validDate = in.readString();
		this.cardId = in.readString();
		this.isValid = in.readInt();
		this.tagUkid = in.readString();
		this.businessId = in.readLong();
		this.tagName = in.readString();
		this.invalidDate = in.readString();
		this.validDateStr = in.readString();
		this.invalidDateStr = in.readString();
		this.alwaysOpen = in.readInt();
	}

	public static final Parcelable.Creator<AuthorityDistributeItemBean> CREATOR = new Parcelable.Creator<AuthorityDistributeItemBean>() {
		@Override
		public AuthorityDistributeItemBean createFromParcel(Parcel source) {
			return new AuthorityDistributeItemBean(source);
		}

		@Override
		public AuthorityDistributeItemBean[] newArray(int size) {
			return new AuthorityDistributeItemBean[size];
		}
	};
}
